<div class="i_new">
	<div class="modelName">
		<h1>当前位置：新闻列表管理</h1>
	</div>
	<div class="bnt_grey w100 lh30 f12 hand tc">
		<a id="c_p_c_btn" href="javascript:void(0)">新增新闻</a>
	</div>
	<div class="dataList mt10">
		<table class="w">
			<thead>
				<tr>
					<th>新闻名称</th>
					<th>创建时间</th>
					<th>前台显示</th>
					<th>操作</th>
				</tr>
			</thead>
			<tbody>
				{#foreach from=$newList key=key item=item#}
				<tr>
					<td>
						{#$item.title#}
					</td>
					<td class="w150 tc">
						{#$item.createTime#}
					</td>
					<td class="w150 tc">
						<input type="checkbox">
						打钩为显示
					</td>
					<td class="w150 tc">
						<a onclick="doAction(this);" href="javascript:void(0)" rel='{#$baseUrl#}infoManage/updateInit?id={#$item.id#}'>编辑</a>
						<a onclick="doAction(this);" href="javascript:void(0)" rel='{#$baseUrl#}infoManage/delete?id={#$item.id#}'>删除</a>
					</td>
				</tr>
				{#/foreach#}
			</tbody>
		</table>
	</div>	
</div>
<script type="text/javascript">
	$("#c_p_c_btn").click(function() {
		loadPage('{#$baseUrl#}infoManage/createInit');
	});
	function doAction(elem){
		loadPage(elem.rel);
	}
</script>